﻿using System;

using BodaNetCommunications.Utilities.ComTypes;

namespace BodaNetCommunications.Utilities.Attributes
{
    /// <summary>
    /// 前端可以根据设备类型拉出支持的通讯协议服务
    /// </summary>
    [AttributeUsage(AttributeTargets.Enum, AllowMultiple = true)]
    public class DeviceTypeAttribute : Attribute
    {
        /// <summary>
        /// 设备分类
        /// </summary>
        public DeviceType DeviceType { get; }

        public DeviceTypeAttribute(DeviceType deviceType)
        {
            DeviceType = deviceType;
        }
    }
}